package com.sinosoft.validateCode.util;

/**
 * @author handong
 * 截图范围
 */
public class CutRange {

    /**
     * 截图的x轴
     */
    private int x;

    /**
     * 截图的y轴
     */
    private int y;

    /**
     * 截图的宽度
     */
    private int width;

    /**
     * 截图的高度
     */
    private int height;


    public CutRange(int x, int y, int width, int height) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }


    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }



    public int getStartX(){
        return x;
    }


    public int getEndX(){

        return x+width;
    }

    public int getStartY(){

        return y;
    }

    public int getEndY(){


        return y + height;
    }
}
